#-------------------------------------------------
#
# Project created by QtCreator 2014-03-10T15:34:28
#
#-------------------------------------------------

QT       += core gui
QT       += network
QT       += opengl
QT       += quick
QT       += qml
QT       += multimedia

QT += qml quick gui network xmlpatterns

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

TARGET = znews-qt
TEMPLATE = app


SOURCES += main.cpp \
    model/appmainmodel.cpp \
    model/stringlistmodel.cpp \
    model/articlemodel.cpp \
    applicationinfo.cpp \
    model/sourcemodel.cpp \
    model/categorymodel.cpp \
    model/contentmodel.cpp \
    model/imagemodel.cpp

HEADERS  += \
    model/Resources.h \
    model/appmainmodel.h \
    model/stringlistmodel.h \
    model/articlemodel.h \
    applicationinfo.h \
    model/sourcemodel.h \
    model/categorymodel.h \
    model/contentmodel.h \
    model/imagemodel.h

FORMS    +=

INCLUDEPATH += $$PWD/../engineznews
DEPENDPATH += $$PWD/../engineznews

win32:CONFIG(release, debug|release): LIBS += -L$$OUT_PWD/../engineznews/release/ -lengineznews
else:win32:CONFIG(debug, debug|release): LIBS += -L$$OUT_PWD/../engineznews/debug/ -lengineznews
else:unix: LIBS += -L$$OUT_PWD/../engineznews/ -lengineznews

win32:CONFIG(release, debug|release): PRE_TARGETDEPS += $$OUT_PWD/../engineznews/release/engineznews.lib
else:win32:CONFIG(debug, debug|release): PRE_TARGETDEPS += $$OUT_PWD/../engineznews/debug/engineznews.lib
else:unix: PRE_TARGETDEPS += $$OUT_PWD/../engineznews/libengineznews.a

INCLUDEPATH += $$PWD/../enginebase
DEPENDPATH += $$PWD/../enginebase

win32:CONFIG(release, debug|release): LIBS += -L$$OUT_PWD/../enginebase/release/ -lenginebase
else:win32:CONFIG(debug, debug|release): LIBS += -L$$OUT_PWD/../enginebase/debug/ -lenginebase
else:unix: LIBS += -L$$OUT_PWD/../enginebase/ -lenginebase

win32:CONFIG(release, debug|release): PRE_TARGETDEPS += $$OUT_PWD/../enginebase/release/enginebase.lib
else:win32:CONFIG(debug, debug|release): PRE_TARGETDEPS += $$OUT_PWD/../enginebase/debug/enginebase.lib
else:unix: PRE_TARGETDEPS += $$OUT_PWD/../enginebase/libenginebase.a

INCLUDEPATH += $$PWD/../3rdparty/json
DEPENDPATH += $$PWD/../3rdparty/json

win32:CONFIG(release, debug|release): LIBS += -L$$OUT_PWD/../3rdparty/json/release/ -ljson
else:win32:CONFIG(debug, debug|release): LIBS += -L$$OUT_PWD/../3rdparty/json/debug/ -ljson
else:unix: LIBS += -L$$OUT_PWD/../3rdparty/json/ -ljson

INCLUDEPATH += $$PWD/../3rdparty/tufao
DEPENDPATH += $$PWD/../3rdparty/tufao

win32:CONFIG(release, debug|release): LIBS += -L$$OUT_PWD/../3rdparty/tufao/release/ -ltufao
else:win32:CONFIG(debug, debug|release): LIBS += -L$$OUT_PWD/../3rdparty/tufao/debug/ -ltufao
else:unix: LIBS += -L$$OUT_PWD/../3rdparty/tufao/ -ltufao

win32:CONFIG(release, debug|release): PRE_TARGETDEPS += $$OUT_PWD/../3rdparty/tufao/release/tufao.lib
else:win32:CONFIG(debug, debug|release): PRE_TARGETDEPS += $$OUT_PWD/../3rdparty/tufao/debug/tufao.lib
else:unix: PRE_TARGETDEPS += $$OUT_PWD/../3rdparty/tufao/libtufao.a


RESOURCES += \
    Resource.qrc

DESTPATH = $$PWD/../../znews-qt/QML
target.path = $$DESTPATH

qml.files = *.qml
qml.path = $$DESTPATH


OTHER_FILES += \
    Main.qml \
    gui/ MagazineItem \
    gui/common/MagazineItem.qml \
    gui/delegate/ArticleDelegate.qml \
    gui/common/ScrollBar.qml \
    gui/common/ButtonRightMenu.qml \
    gui/common/ButtonCategoryMagazine.qml \
    gui/common/Seperator.qml \
    gui/common/TouchLabel.qml \
    gui/common/Header.qml \
    gui/common/BasePage.qml \
    gui/page/MainPage.qml \
    gui/page/WaitPage.qml \
    FlipBoardSample/components/Page.qml \
    FlipBoardSample/main.qml \
    gui/delegate/CatergoryDelegate.qml \
    gui/common/Menu.qml \
    gui/delegate/MenuDelegate.qml \
    gui/common/Line.qml \
    gui/MainWindows.qml \
    gui/common/BusyIndicator.qml \
    gui/common/PullDownListView.qml \
    gui/common/Button.qml \
    gui/articlecontent/ContentRow.qml \
    gui/articlecontent/ContentArticle.qml \
    gui/articlecontent/ContentHeader.qml \
    gui/articlecontent/ContentFooter.qml \
    gui/articlecontent/ContentWaitingScreen.qml \
    gui/articlecontent/ContentWaitingImage.qml \
    gui/common/WaitingImage.qml \
    gui/common/MainBasePage.qml \
    gui/articlecontent/ContentImage.qml \
    android/AndroidManifest.xml \
    gui/common/MainBasePage.qml \
    gui/common/ZoomControl.qml \
    gui/common/ZoomableImage.qml


#ANDROID_PACKAGE_SOURCE_DIR = $$PWD/znews-qt/android

